package com.triones.yjj.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.yjj.entity.ActivityDO;
import com.triones.yjj.entity.MemberGroupPurchaseDO;
import com.triones.yjj.entity.bo.ActivityListParams;
import com.triones.yjj.entity.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 活动管理 mapper 接口
 *
 * @Author: triones
 */
public interface MemberGroupPurchaseMapper extends BaseMapperPlus<MemberGroupPurchaseMapper, MemberGroupPurchaseDO, MemberGroupPurchaseVO> {

    Page<WxMemberGroupPurchaseVO> selectPageList(@Param("page") Page<MemberGroupPurchaseDO> page, @Param(Constants.WRAPPER) Wrapper<MemberGroupPurchaseDO> wrapper);

    WxGroupPurchaseVO getMemberGroupPurchaseDetail(@Param("activityId") Long activityId,@Param("memberId") Long memberId);

    WxGroupPurchaseVO getGroupPurchaseById(@Param("id") Long id);

    Page<CanMoveTeamVO> canMoveTeamPageList(@Param("page") Page<CanMoveTeamVO> build,@Param(Constants.WRAPPER) QueryWrapper<MemberGroupPurchaseDO> wrapper);
}
